package com.songjiakang.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.songjiakang.bean.Movie;
import com.songjiakang.dao.MovieDao;

@Service
public class MovieServiceImp implements MovieService{
	@Autowired
	private MovieDao dao;

	public PageInfo list(Integer pageNum, Integer pageSize, Movie mo) {
		PageHelper.startPage(pageNum, pageSize);
		System.err.println(mo);
		List<Movie> list=dao.list(mo);
		PageInfo info = new PageInfo(list);
		return info;
	}
	
	
}
